<div class="contents_left w152 OverH">
  <div class="sidebar_nav">
    <ul>
    <php>foreach($category as $k=>$vo){ $count = count($vo['d'])-1;</php>
    
      <li class="<php>if($k==0) echo 'on';</php>" id='left_li_{$k}'>
        <dl>
          <dt><a href="javascript:void(0)" onclick="clickTitle('{$k}')">{$vo.t}</a></dt>
        </dl>
      </li>
      <php>}</php>
    </ul>
  </div>
</div>
<script language="javascript" type="text/javascript">
var LiCount = <php>echo count($category);</php>;
function clickTitle(id){
	var li_id = '#left_li_'+id;
	
	var css = $(li_id).attr('class');
	if(css=='on') $(li_id).attr('class','');
	else if(css=='def') $(li_id).attr('class','');
	else $(li_id).attr('class','def');
}
function clickLink(id,a){	
	for(i=0; i<LiCount; i++){
		var css = $('#left_li_'+i).attr('class');
		if(css=='on') $('#left_li_'+i).attr('class','');
    }
	
	var li_id = '#left_li_'+id;
	$(li_id).attr('class','on');
	
	window.location.href = '__URL__&act=help&cid='+a;
}
</script>
